package sale.entities;

import java.io.Serializable;
import java.util.ArrayList;

import article.entities.ArticleVO;

public class OrderVO implements Serializable {

	private static final long serialVersionUID = 1L;
	private int primaryKey;
	private boolean isReady;	
	private ArrayList<ArticleVO> arts = new ArrayList<ArticleVO>();
	private ArrayList<String> especif;
	private int tableKey;
	//Son workarounds
	private String address;
	private String tel;
	private int ci;
	
	public ArrayList<ArticleVO> getArts() {
		return arts;
	}	
	public ArrayList<String> getEspecif(){
		return especif;
	}	
	public void setEspecif(ArrayList<String> esp){
		this.especif = esp;
	}
	public void addArticleVO(ArticleVO arg0){
		this.arts.add(arg0);
	}
	public int getPrimaryKey() {
		return primaryKey;
	}
	public void setPrimaryKey(int primaryKey) {
		this.primaryKey = primaryKey;
	}
	public boolean isReady() {
		return isReady;
	}
	public void setReady(boolean isReady) {
		this.isReady = isReady;
	}
	public int getTableKey() {
		return tableKey;
	}
	public void setTableKey(int tableKey) {
		this.tableKey = tableKey;
	}
	public String getAddress() {
		return address;
	}
	public void setAddress(String address) {
		this.address = address;
	}
	public String getTel() {
		return tel;
	}
	public void setTel(String tel) {
		this.tel = tel;
	}
	public void setArts(ArrayList<ArticleVO> arts) {
		this.arts = arts;
	}
	public int getCi() {
		return ci;
	}
	public void setCi(int ci) {
		this.ci = ci;
	}
	
	
	public OrderVO(ArrayList<ArticleVO> arts,ArrayList<String> especif ){
		this.arts=arts;
		this.especif=especif;
	}
	//Constructor atajo para pedidos de mesa y takeout
	public OrderVO(OrderVO ord, String address, String tel, int ci2){
		this.arts=ord.getArts();
		this.especif=ord.getEspecif();
		this.address = address;
		this.tel = tel;
		this.ci = ci2;
	}
	public OrderVO(ArrayList<ArticleVO> arts2) {
		this.arts=arts2;
	}
	public OrderVO(int primaryKey, boolean isReady, ArrayList<ArticleVO> arts,
			ArrayList<String> especif, int tableKey, String address, String tel) {
		this.primaryKey = primaryKey;
		this.isReady = isReady;
		this.arts = arts;
		this.especif = especif;
		this.tableKey = tableKey;
		this.address = address;
		this.tel = tel;
	}
	
	

}
